﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ScheduleSystem_Tasks_UpdateTask : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        String TaskId = Request.QueryString["id"];

        Task MyTask = new Task();
        String SqlStatment = "select * from Task where TaskId='" + TaskId + "'";
        foreach (System.Data.DataRow row in MyTask.GetTasks(SqlStatment).Rows)
        {
            TaskName.Text = row["Name"].ToString();
            StartDate.Text = row["StartDate"].ToString();
        }


    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {

    }
    protected void DueDate_TextChanged(object sender, EventArgs e)
    {

    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("Calendar.aspx");
    }
}